var box = new Object("box","#FFF","#960",boxAction,boxDraw);

function boxAction(x,y,direction)
{
	window.game.table[x][y]=0;
	return false;
}

function boxDraw(context,x,y,width,height)
{
	context.strokeStyle="#000";
	context.beginPath();
	context.moveTo(x,y);
	context.lineTo(x+width,y+height);
	context.moveTo(x,y+height);
	context.lineTo(x+width,y);
	context.stroke();
}

window.game.addObject( box );